﻿<Window xmlns:my="clr-namespace:Brjnk.GpxExplorer.UI.Controls"  x:Class="Brjnk.GpxExplorer.UI.PointColorsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:l="clr-namespace:Brjnk.GpxExplorer.Localization"
        xmlns:workspace="clr-namespace:Brjnk.GpxExplorer.Workspace"
        Title="PointColorsWindow"
        SizeToContent="WidthAndHeight"
        MinWidth="300"
        ResizeMode="NoResize">
    <Grid DataContext="{Binding Source={workspace:GetWorkspace}, Path=Settings}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>

        <TextBlock Grid.Column="1" Text="{l:Loc PointColorsText}" />
        <TextBlock Grid.Column="2" Text="{l:Loc PointColorsPin}" />

        <TextBlock Grid.Row="1"  Text="{l:Loc PointColorsWaypoint}" />
        <my:ColorPicker Margin="4" Color="{Binding WaypointStyle.Color}" MinWidth="120" Grid.Row="1" Grid.Column="1" />
        <my:ColorPicker Margin="4" Color="{Binding WaypointStyle.PinColor}" MinWidth="120" Grid.Row="1" Grid.Column="2" />

        <TextBlock Grid.Row="2" Text="{l:Loc PointColorsRoutePoint}" />
        <my:ColorPicker Margin="4" Color="{Binding RoutePointStyle.Color}" MinWidth="120" Grid.Row="2" Grid.Column="2" />
        <my:ColorPicker Margin="4" Color="{Binding RoutePointStyle.PinColor}" MinWidth="120" Grid.Row="2" Grid.Column="1" />

        <TextBlock Grid.Row="3" Text="{l:Loc PointColorsTrackPoint}" />
        <my:ColorPicker Margin="4" Color="{Binding TrackPointStyle.Color}" MinWidth="120" Grid.Row="3" Grid.Column="1" />
        <my:ColorPicker Margin="4" Color="{Binding TrackPointStyle.PinColor}" MinWidth="120" Grid.Row="3" Grid.Column="2" />

        <TextBlock Grid.Row="4" Text="{l:Loc PointColorsSearchPoint}" />
        <my:ColorPicker Margin="4" Color="{Binding SearchPointStyle.Color}" MinWidth="120" Grid.Row="4" Grid.Column="1" />
    </Grid>
</Window>